import request from '@/utils/request'


// 查询UserKey列表
export function listMyKey(query) {
  return request({
    url: '/system/key/my-list',
    method: 'get',
    params: query
  })
}

// 查询UserKey列表
export function listKey(query) {
  return request({
    url: '/system/key/list',
    method: 'get',
    params: query
  })
}

// 查询UserKey详细
export function getKey(id) {
  return request({
    url: '/system/key/' + id,
    method: 'get'
  })
}

// 新增UserKey
export function addKey(data) {
  return request({
    url: '/system/key',
    method: 'post',
    data: data
  })
}

// 修改UserKey
export function updateKey(data) {
  return request({
    url: '/system/key',
    method: 'put',
    data: data
  })
}

// 删除UserKey
export function delKey(id) {
  return request({
    url: '/system/key/' + id,
    method: 'delete'
  })
}
